package com.example.minemodule.entity;

public class PersonCenterEntity {

    /**
     * result : true
     * msg : null
     * data : {"healthRecordsEnable":true,"preference":{"key":"chargeEnable","name":"开启图文问诊","value":"1"},"employee":{"uid":0,"email":null},"account":{"userNo":null,"mobile":"177****5308","nickname":"Mile","gender":{"key":"M","desc":"男"},"avatar":"https://imgvbp.yilijk.com//avatar/8d0/8d068de56a7e4159a82ca2afa26cddfa.jpg"}}
     * errorCode : null
     */

    private boolean result;
    private String msg;
    /**
     * healthRecordsEnable : true
     * preference : {"key":"chargeEnable","name":"开启图文问诊","value":"1"}
     * employee : {"uid":0,"email":null}
     * account : {"userNo":null,"mobile":"177****5308","nickname":"Mile","gender":{"key":"M","desc":"男"},"avatar":"https://imgvbp.yilijk.com//avatar/8d0/8d068de56a7e4159a82ca2afa26cddfa.jpg"}
     */

    private DataBean data;
    private String errorCode;

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public static class DataBean {
        private boolean healthRecordsEnable;
        private boolean atbEnable;
        /**
         * key : chargeEnable
         * name : 开启图文问诊
         * value : 1
         */

        private PreferenceBean preference;
        /**
         * uid : 0
         * email : null
         */

        private String releaseStatus;
        private EmployeeBean employee;
        /**
         * userNo : null
         * mobile : 177****5308
         * nickname : Mile
         * gender : {"key":"M","desc":"男"}
         * avatar : https://imgvbp.yilijk.com//avatar/8d0/8d068de56a7e4159a82ca2afa26cddfa.jpg
         */

        private AccountBean account;
        private boolean isHeartToward;

        public boolean isHeartToward() {
            return isHeartToward;
        }

        public void setHeartToward(boolean heartToward) {
            isHeartToward = heartToward;
        }

        public boolean isHealthRecordsEnable() {
            return healthRecordsEnable;
        }

        public void setHealthRecordsEnable(boolean healthRecordsEnable) {
            this.healthRecordsEnable = healthRecordsEnable;
        }

        public PreferenceBean getPreference() {
            return preference;
        }

        public void setPreference(PreferenceBean preference) {
            this.preference = preference;
        }

        public String getReleaseStatus() {
            return releaseStatus;
        }

        public void setReleaseStatus(String releaseStatus) {
            this.releaseStatus = releaseStatus;
        }

        public EmployeeBean getEmployee() {
            return employee;
        }

        public void setEmployee(EmployeeBean employee) {
            this.employee = employee;
        }

        public AccountBean getAccount() {
            return account;
        }

        public void setAccount(AccountBean account) {
            this.account = account;
        }

        public boolean isAtbEnable() {
            return atbEnable;
        }

        public void setAtbEnable(boolean atbEnable) {
            this.atbEnable = atbEnable;
        }

        public static class PreferenceBean {
            private String key;
            private String name;
            private String value;

            public String getKey() {
                return key;
            }

            public void setKey(String key) {
                this.key = key;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getValue() {
                return value;
            }

            public void setValue(String value) {
                this.value = value;
            }
        }

        public static class EmployeeBean {
            private String uid;
            private String email;

            public String getUid() {
                return uid;
            }

            public void setUid(String uid) {
                this.uid = uid;
            }

            public String getEmail() {
                return email;
            }

            public void setEmail(String email) {
                this.email = email;
            }
        }

        public static class AccountBean {
            private String userNo;
            private String mobile;
            private String nickname;
            /**
             * key : M
             * desc : 男
             */

//            private GenderBean gender;
            private String avatar;

            public String getUserNo() {
                return userNo;
            }

            public void setUserNo(String userNo) {
                this.userNo = userNo;
            }

            public String getMobile() {
                return mobile;
            }

            public void setMobile(String mobile) {
                this.mobile = mobile;
            }

            public String getNickname() {
                return nickname;
            }

            public void setNickname(String nickname) {
                this.nickname = nickname;
            }

//            public GenderBean getGender() {
//                return gender;
//            }
//
//            public void setGender(GenderBean gender) {
//                this.gender = gender;
//            }

            public String getAvatar() {
                return avatar;
            }

            public void setAvatar(String avatar) {
                this.avatar = avatar;
            }

            public static class GenderBean {
                private String key;
                private String desc;

                public String getKey() {
                    return key;
                }

                public void setKey(String key) {
                    this.key = key;
                }

                public String getDesc() {
                    return desc;
                }

                public void setDesc(String desc) {
                    this.desc = desc;
                }
            }
        }
    }
}
